package ckt;

public class Bus extends MotoVehicle{

    //载客数量
    private int SeatCount;
    Database database;

    Bus(){
        database=new Database();
    }

    public Bus(String nCarType, String nNum, String nColor,String nBrand, int nSeaCount, String nType,
                 int nMeleage, int nRentCarMonet             ){

        super(nCarType,nNum,nColor, nMeleage);
        database = new Database();

        database.add(nCarType,nNum,nColor,nBrand,nSeaCount,nType,nMeleage,nRentCarMonet);
    }

    @Override
    void CarObvious() {
        System.out.println("以下是所有客车车辆信息");
        database.select("客车","Caratype");
    }

    @Override
    public Void Calrent(int day) {
        return null;
    }

    public  int getSeatCount(){
        return  SeatCount;
    }

    public void setSeaCount(int seatCount) {
        SeatCount = seatCount;
    }
}
